Enterprise Objects Framework Release 1.1 Copyright ã1995 by NeXT Computer, Inc.  All Rights Reserved.

NXTextFormatter

Inherits From:	NXFormatter : Object

Declared In:	eointerface/NXTextFormatter.h

Class Description

An NXTextFormatter displays read-only text values in an NXTableView. This class displays text more quickly than the companion NXEditableTextFormatter class. See the NXFormatter class specification for more information.

Instance Variables

id drawCell;

drawCell	The Cell object used to draw text.

Method Types

Initializing and freeing	- init
- free

Accessing the font	- setFont:
- font

Archiving	- read:
- write:

Instance Methods

font

- font

Returns the Font object used to draw text.

free

- free

Frees the memory used by the NXTextFormatter and returns nil.

init

- init

Initializes a newly allocated NXTextFormatter with a Cell whose font is set to the user's default font at a size of 12 points. This is the designated initializer for the NXTextFormatter class. Returns self.

read:

- read:(NXTypedStream *)stream

Reads the NXTextFormatter from the typed stream stream. Returns self.

setFont:

- setFont:aFont

Sets the font used for displaying text to the Font object aFont. Returns self.

write:

- write:(NXTypedStream *)stream

Writes the NXTextFormatter to the typed stream stream. Returns self.